﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace T19ShotBlock.BaseClass
{
    /// <summary>
    /// 载入图片资源
    /// </summary>
    /// <param name="bmFilename">图片文件名</param>
    /// <return>位图（bitmap）资源</return>
    public class BitmapHelper
    {
        public static Bitmap LoadBm(string bmFilename)
        {
            return new Bitmap(Application.StartupPath + "\\GamePictures\\" 
                + bmFilename + ".bmp");
        }
    }
}
